package com.itheima.app.controller;

import com.itheima.app.manager.FocusUserManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FocusUserController {
    @Autowired
    private FocusUserManager focusUserManager;
    @PostMapping("/smallVideos/{focusUserId}/userFocus")//关注
    public void attention(@PathVariable Long focusUserId){
        focusUserManager.attention(focusUserId);
    }

    @PostMapping("/smallVideos/{focusUserId}/userUnFocus")//取消关注
    public void unAttention(@PathVariable Long focusUserId){
        focusUserManager.unAttention(focusUserId);
    }
}
